package com.Interface.TestIO;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.Reader;
import java.util.stream.Stream;

public class test6 {
    public static void main(String[] args) throws Exception{
        String path = "D:\\JAVA\\schoolSystem\\src\\com\\Interface\\TestIO\\file\\1.txt";
        Reader reader = new FileReader(path);

        BufferedReader bufferedReader = new BufferedReader(reader);
        Stream<String> line = bufferedReader.lines();
        line.forEach(x -> System.out.println(x));
    }
}
